package com.ruizhong.PIW.controller;

import com.ruizhong.PIW.service.NavBtnService;
import com.ruizhong.PIW.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/Nav")
@CrossOrigin
public class NavController {
    @Autowired
    private NavBtnService navBtnService;
    @GetMapping("/getNavBtn/{mainId}")
    public Result getNavBtn(@PathVariable Integer mainId){
        return navBtnService.getNavBtn(mainId);
    }
}
